# -*- coding:utf8 -*-
import re

pat = '\d+'

s = '12345'

if re.match(pat, s):
    print "ok"